Skip to content

refactor(ui): QueryaIconButton, QueryaSearchField and QueryaTabStrip off shadcn - #1413

Merged
ZhuchkaTriplesix merged 4 commits into
devfrom
issue/1365-icon-search-tabs-off-shadcn
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 4 commits into
devfrom
issue/1365-icon-search-tabs-off-shadcn

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1365 (does not close it)

Second migration under the ratchet guard (#1409), after #1412: three more kit controls stop importing package:shadcn_flutter and leave the allow-list in the same change.

File Was Now
querya_icon_button.dart Theme.of(context).colorScheme, Gap context.queryaTheme.colorScheme, SizedBox
querya_search_field.dart Theme.of, unprefixed ValueChanged / CallbackShortcuts / SingleActivator context.queryaTheme.colorScheme, material.*
querya_tab_strip.dart Theme.of, Text(...).small().semiBold() / .muted(), Gap, unprefixed Listenable / ListenableBuilder context.queryaTheme.colorScheme, a plain Text (14 px, 20 px line, w600 selected / w400 muted), SizedBox, material.*

QueryaTheme.colorScheme is the scheme the app passes to its shadcn theme, so the colours are the same values. The tab label keeps its 14 px / 20 px line and weights.

Conflict note

The allow-list lines of this PR and of #1412 are neighbours; whichever merges second needs a trivial merge of that file.

Not in this PR

Dropdown, action menu and dialog card (shadcn radiusXxl), and everything that needs a button (querya_empty_state, querya_modal_dialog, querya_action_button) wait for QueryaButton (#1408) and the theme-access decision.

Not run locally; CI is the check.

…no longer import shadcn

The colour scheme comes from QueryaTheme, gaps are SizedBoxes, the tab label
is a plain Text with the same size and weight, and widgets types are taken
from material. The three files leave the shadcn allow-list. Part of #1365.
@github-actions github-actions Bot added epic Epic / umbrella issue frontend Theme parser epic label: frontend ui User interface components and widgets ux User experience, keyboard shortcuts and interactions labels Oct 11, 2026
…ueryaThemeScope

Widgets in tests and dialogs can be built under the UI library's theme without
a QueryaThemeScope; context.queryaTheme asserts there. context.colors is the
same scheme the old code read.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit f1e0abf into dev Oct 11, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1365-icon-search-tabs-off-shadcn branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

epic Epic / umbrella issue frontend Theme parser epic label: frontend ui User interface components and widgets ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant